<?php

$q=$_GET["q"];
echo  $q;

$host='localhost';
$data_user='root';
$data_pass='';

$data_name='dung';
//ket noi co so du lieu
$conn = mysql_connect($host,$data_user,$data_pass) or die('can\'t connect to database');   
mysql_select_db('dung',$conn) or die('can\'t select table');

$sql="select*from thietbi";
        $res="update thietbi set thietbi1='$q'";
        mysql_query($sql) or die('cant connect table');
        mysql_query($res);
?>